<!DOCTYPE html>
<html lang="en">

<head>
     <meta charset="UTF-8">
     <title>Document</title>
     <link rel="stylesheet" href="css/admin.css">
     <link rel="stylesheet" href="css/app.css">
     <meta charset="UTF-8">
     <meta name="viewport" content="width=device-width, initial-scale=1">
     <title>登陆</title>
     <link rel="stylesheet" href="./css/app.css">
     <link rel="stylesheet" href="css/jquery.mobile-1.4.5.min.css" />
     <script src="js/template.js"></script>
     <script src="./js/jquery-1.12.4.min.js"></script>
     <script src="./js/jquery.mobile-1.4.5.min.js"></script>
</head>

<body>
     <!--消息管理-->
     <div data-role="page" id="admin_message_page" data-tap-toggle="false" data-position="fixed" data-fullscreen="true">
          <div data-role="header">
               <div data-role="navbar">
                    <ul>
                         <li><a href="#" class="ui-btn-active ui-state-persist">信息箱管理</a></li>
                         <li><a href="#admin_post_page">海报栏管理</a></li>
                         <li><a href="#admin_lost_page">失物墙管理</a></li>
                         <li><a href="#admin_course_page">课件管理</a></li>
                    </ul>
               </div>
          </div>
          <div data-role="content">
               <div class="container  text-center choice_list">
                    <table>
                         <thead>
                              <tr>
                                   <th></th>
                              </tr>
                         </thead>
                         <tbody>
                              <tr>
                                   <td></td>
                              </tr>
                         </tbody>
                    </table>
               </div>
          </div>
          <div data-role="footer" data-tap-toggle="false" data-position="fixed" data-fullscreen="true"> </div>
     </div>
     <!--                        海报栏管理
                                 海报栏管理
                                 海报栏管理

       quu..__
         $$$b  `---.__
          "$$b        `--.                          ___.---uuudP
           `$$b           `.__.------.__     __.---'      $$$$"              .
             "$b          -'            `-.-'            $$$"              .'|
               ".                                       d$"             _.'  |
                 `.   /                              ..."             .'     |
                   `./                           ..::-'            _.'       |
                    /                         .:::-'            .-'         .'
                   :                          ::''\          _.'            |
                  .' .-.             .-.           `.      .'               |
                  : /'$$|           .@"$\           `.   .'              _.-'
                 .'|$u$$|          |$$,$$|           |  <            _.-'
                 | `:$$:'          :$$$$$:           `.  `.       .-'
                 :                  `"--'             |    `-.     \
                :##.       ==             .###.       `.      `.    `\
                |##:                      :###:        |        >     >
                |#'     `..'`..'          `###'        x:      /     /
                 \                                   xXX|     /    ./
                  \                                xXXX'|    /   ./
                  /`-.                                  `.  /   /
                 :    `-  ...........,                   | /  .'
                 |         ``:::::::'       .            |<    `.
                 |             ```          |           x| \ `.:``.
                 |                         .'    /'   xXX|  `:`M`M':.
                 |    |                    ;    /:' xXXX'|  -'MMMMM:'
                 `.  .'                   :    /:'       |-'MMMM.-'
                  |  |                   .'   /'        .'MMM.-'
                  `'`'                   :  ,'          |MMM<
                    |                     `'            |tbap\
                     \                                  :MM.-'
                      \                 |              .''
                       \.               `.            /
                        /     .:::::::.. :           /
                       |     .:::::::::::`.         /
                       |   .:::------------\       /
                      /   .''               >::'  /
                      `',:                 :    .'
                                           `:.:'
     -->
     <div data-role="page" id="admin_post_page" data-tap-toggle="false" data-position="fixed" data-fullscreen="true">
          <script id="admin_table_post_template" type="text/html"> {{each list as value i}}
               <tr id="{{value.id}}">
                    <td>{{value.id}}</td>
                    <td>{{value.ttype}}</td>
                    <td>{{value.icon}}</td>
                    <td>{{value.pic}}</td>
                    <td><a href="#" onclick="edit_post_tip()">编辑</a>|<a href="#" onclick="delete_post_tip()">删除</a></td>
               </tr> {{/each}} </script>
          <script>
               $(document).on("pagebeforcreate", "#admin_lost_page", function (e) {
                    var receive_data;
                    $.ajax({
                         url: "http://123.206.198.158:9093/get_news"
                         , data: {}
                         , cache: true
                         , async: false
                         , type: "post"
                         , dataType: "json"
                         , success: function (data) {
                              receive_data = data;
                         }
                    });
                    var get_data_content = {
                         list: receive_data
                    };
                    $("#admin_table_post").append(template('admin_table_post_template', get_data_content));
               });
               /*海报栏-帖子删除*/
               function delete_post_tip() {
                    var tip_id = $("this").parent.parent.id;
                    $.ajax({
                         url: "http://123.206.198.158/remove_news"
                         , data: {
                              id: tip_id
                         }
                         , cache: false
                         , async: false
                         , type: "post"
                         , dataType: "JSON"
                         , sucess: function (data) {
                              alert(data);
                              window.location.reload();
                         }
                    });
               }
          </script>
          <div data-role="header">
               <div data-role="navbar">
                    <ul>
                         <li><a href="#admin_message_page">信息箱管理</a></li>
                         <li><a href="#" class="ui-btn-active ui-state-persist">海报栏管理</a></li>
                         <li><a href="#admin_lost_page">失物墙管理</a></li>
                         <li><a href="#admin_course_page">课件管理</a></li>
                    </ul>
               </div>
          </div>
          <div data-role="content">
               <div class="container">
                    <table class="admin_table_post" cellspacing="0px" data-filter="true" data-filter-placeholder="请输入查询关键字">
                         <thead>
                              <tr>
                                   <th>ID</th>
                                   <th>举办组织</th>
                                   <th>组织图标</th>
                                   <th>海报图片</th>
                                   <th>帖子操作</th>
                              </tr>
                         </thead>
                         <tbody>
                              <tr>
                                   <td>1</td>
                                   <td>社团</td>
                                   <td>http//dwaddwadawwd</td>
                                   <td>http://dd123grffxgrgfesf</td>
                                   <td><a href="#" onclick="edit_post_tip()">编辑</a>|<a href="#" onclick="delete_post_tip()">删除</a></td>
                              </tr>
                         </tbody>
                    </table>
               </div>
          </div>
          <div data-role="footer" data-tap-toggle="false" data-position="fixed" data-fullscreen="true"> </div>
     </div>
     <!--              失物墙管理
                       失物墙管理
                       失物墙管理


                 ___====-_  _-====___
           _--^^^#####//      \\#####^^^--_
        _-^##########// (    ) \\##########^-_
       -############//  |\^^/|  \\############-
     _/############//   (@::@)   \\############\_
    /#############((     \\//     ))#############\
   -###############\\    (oo)    //###############-
  -#################\\  / VV \  //#################-
 -###################\\/      \//###################-
_#/|##########/\######(   /\   )######/\##########|\#_
|/ |#/\#/\#/\/  \#/\##\  |  |  /##/\#/  \/\#/\#/\#| \|
`  |/  V  V  `   V  \#\| |  | |/#/  V   '  V  V  \|  '
   `   `  `      `   / | |  | | \   '      '  '   '
                    (  | |  | |  )
                   __\ | |  | | /__
                  (vvv(VVV)(VVV)vvv)
      -->
     <div data-role="page" id="admin_lost_page" data-tap-toggle="false" data-position="fixed" data-fullscreen="true">
          <script id="admin_table_lost_template" type="text/html"> {{each list as value i}}
               <tr id="{{value.id}}">
                    <td>{{value.id}}</td>
                    <td>{{value.type}}</td>
                    <td>{{value.detail}}</td>
                    <td>{{value.stu_id}}{{value.nickname}}</td>
                    <td>{{value.ttime}}</td>
                    <td>{{value.phone}}</td>
                    <td>{{value.pic}}</td>
                    <td><a href="#" onclick="edit_lostfound_tip()">编辑</a>|<a href="#" onclick="delete_lostfound_tip()">删除</a></td>
               </tr> {{/each}} </script>
          <script>
               $(document).on("pagebeforcreate", "#admin_lost_page", function (e) {
                    var receive_data;
                    $.ajax({
                         url: "http://123.206.198.158:9093/get_all"
                         , data: {}
                         , cache: true
                         , async: false
                         , type: "post"
                         , dataType: "json"
                         , success: function (data) {
                              receive_data = data;
                         }
                    });
                    var get_data_content = {
                         list: receive_data
                    };
                    $("#admin_table_lost").append(template('admin_table_lost_template', get_data_content));
               });
               /*失物招领栏-帖子删除*/
               function delete_lostfound_tip() {
                    var tip_id = $("this").parent.parent.id;
                    $.ajax({
                         url: "http://123.206.198.158/remove_message"
                         , data: {
                              id: tip_id
                         }
                         , cache: false
                         , async: false
                         , type: "post"
                         , dataType: "JSON"
                         , sucess: function (data) {
                              window.location.reload();
                         }
                    });
               }
          </script>
          <div data-role="header">
               <div data-role="navbar">
                    <ul>
                         <li><a href="#admin_message_page">信息箱管理</a></li>
                         <li><a href="#admin_post_page">海报栏管理</a></li>
                         <li><a href="#" class="ui-btn-active ui-state-persist">失物墙管理</a></li>
                         <li><a href="#admin_course_page">课件管理</a></li>
                    </ul>
               </div>
          </div>
          <div data-role="content">
               <div class="container">
                    <table class="admin_table_lost" cellspacing="0px" data-filter="true" data-filter-placeholder="请输入查询关键字">
                         <thead>
                              <tr>
                                   <th>ID</th>
                                   <th>类型</th>
                                   <th>内容</th>
                                   <th>发帖人</th>
                                   <th>发帖时间</th>
                                   <th>联系方式</th>
                                   <th>图片路径</th>
                                   <th>操作</th>
                              </tr>
                         </thead>
                         <tbody id="admin_table_lost">
                              <tr>
                                   <td>1</td>
                                   <td>lost</td>
                                   <td>丢了个大西瓜,也没捡到芝麻</td>
                                   <td>2014020300001</td>
                                   <td>16-4-25 12:08:33</td>
                                   <td>15861801234</td>
                                   <td>http://dwadwadwa</td>
                                   <td><a href="#" onclick="edit_lostfound_tip()">编辑</a>|<a href="#" onclick="delete_lostfound_tip()">删除</a></td>
                              </tr>
                         </tbody>
                    </table>
               </div>
          </div>
          <div data-role="footer" data-tap-toggle="false" data-position="fixed" data-fullscreen="true"> </div>
     </div>
     <!--                    课程表管理
                             课程表管理
                             课程表管理


                .-~~~~~~~~~-._       _.-~~~~~~~~~-.
            __.'              ~.   .~              `.__
          .'//                  \./                  \\`.
       .'//                     |                     \\`.
     .'// .-~"""""""~~~~-._     |     _,-~~~~"""""""~-. \\`.
    .'//.-"                 `-.  |  .-'                 "-.\\`.
  .'//______.============-..   \ | /   ..-============.______\\`.
.'______________________________\|/______________________________`.
     -->
     <div data-role="page" id="admin_file_page" data-tap-toggle="false" data-position="fixed" data-fullscreen="true">
          <div data-role="header">
               <div data-role="navbar">
                    <ul>
                         <li><a href="#admin_message_page">信息箱管理</a></li>
                         <li><a href="#admin_post_page">海报栏管理</a></li>
                         <li><a href="#admin_lost_page">失物墙管理</a></li>
                         <li><a href="#" class="ui-btn-active ui-state-persist">课件管理</a></li>
                    </ul>
               </div>
          </div>
          <div data-role="content">
               <div class="container  text-center choice_list">
                    <table>
                         <thead>
                              <tr>
                                   <th></th>
                              </tr>
                         </thead>
                         <tbody>
                              <tr>
                                   <td></td>
                              </tr>
                         </tbody>
                    </table>
               </div>
          </div>
          <div data-role="footer" data-tap-toggle="false" data-position="fixed" data-fullscreen="true"> </div>
     </div>
</body>

</html>
